package com.totem.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.totem.base.model.PageVO;
import com.totem.product.model.*;
import com.totem.product.vo.*;

import java.util.List;

public interface ITProductsService extends IService<TProducts> {

    boolean createProduct(TProducts tProducts, TProductUrl tProductUrl, List<TProductSpec> specList, TProductDetail tProductDetail);

    boolean updateProduct(TProducts tProducts, TProductUrl tProductUrl, List<TProductSpec> specList, TProductDetail tProductDetail);

    ProductVO getInfoById(Long productId);

    ProductVO adminGetInfoById(Long productId);

    PageVO<ProductVO> productPage(ProductPageVO vo);

    PageVO<ProductVO> adminProductPage(ProductPageVO vo);

    Boolean delete(ProductDeleteVO vo);

    Boolean shelf(ProductShelfVO vo);
}
